package me.ywy.dbtest.dongnaodb.db;

import java.util.List;

/**
 * Created by ywy on 2018/4/20.
 */
public interface IBaseDao<T> {

    long insert(T entity);

    long update(T entity , T where);

    int delete(T entity);

    List<T> query(String sql);

    List<T> query(T where);

    List<T> query(T where , String orderBy , Integer startIndex , Integer limit);

}
